import $http from '@/config/requestConfig.js'

function handleRes(res) {
	console.log(res)
	return res;
}

export const user = {
	update(params, options) {
		return $http.post('user/update', params, options)
			.then(res => {
				return handleRes(res);
			})
	},
	getInfo(params, options) {
		return $http.get('user/info', params, options)
			.then(res => {
				return handleRes(res);
			})
	}
	
}
